package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.BookRecommendationDao;
import io.wdb.modules.generator.generator.entity.BookRecommendationEntity;
import io.wdb.modules.generator.generator.service.BookRecommendationService;



@Service("bookRecommendationService")
public class BookRecommendationServiceImpl implements BookRecommendationService {
	@Autowired
	private BookRecommendationDao bookRecommendationDao;
	
	@Override
	public BookRecommendationEntity queryObject(String isbnNo){
		return bookRecommendationDao.queryObject(isbnNo);
	}
	
	@Override
	public List<BookRecommendationEntity> queryList(Map<String, Object> map){
		return bookRecommendationDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bookRecommendationDao.queryTotal(map);
	}
	
	@Override
	public void save(BookRecommendationEntity bookRecommendation){
		bookRecommendationDao.save(bookRecommendation);
	}
	
	@Override
	public void update(BookRecommendationEntity bookRecommendation){
		bookRecommendationDao.update(bookRecommendation);
	}
	
	@Override
	public void delete(String isbnNo){
		bookRecommendationDao.delete(isbnNo);
	}
	
	@Override
	public void deleteBatch(String[] isbnNos){
		bookRecommendationDao.deleteBatch(isbnNos);
	}
	
}
